import http from '@/utils/requset'

//根据用户获取店铺信息
export const getUseridStoreInfo = (params?: any) => {
    return http.request({
        url: `/store/getUseridStoreInfo`,
        method: 'GET',
        params
    })
}
//根据用户获取店铺信息
export const addUseridStoreInfo = (data?: any) => {
    return http.request({
        url: `/store/addUseridStoreInfo`,
        method: 'POST',
        data
    })
}
//根据用户删除店铺信息
export const delUseridStoreInfo = (data?: any) => {
    return http.request({
        url: `/store/delUseridStoreInfo`,
        method: 'DELETE',
        data
    })
}
//根据用户修改店铺信息
export const updateUseridStoreInfo = (data?: any) => {
    return http.request({
        url: `/store/updateUseridStoreInfo`,
        method: 'POST',
        data
    })
}
//根据店铺id新增商品
export const setGoodsByStoreid = (data?: any) => {
    return http.request({
        url: `/store/setGoodsByStoreid`,
        method: 'POST',
        data
    })
}
//根据店铺id修改商品
export const updateGoodsByStoreid = (data?: any) => {
    return http.request({
        url: `/store/updateGoodsByStoreid`,
        method: 'POST',
        data
    })
}
//根据店铺id获取商品列表
export const getGoodsListByStoreid = (params?: any) => {
    return http.request({
        url: `/store/getGoodsListByStoreid`,
        method: 'GET',
        params
    })
}
//删除商品
export const delGoodsByStoreid = (data?: any) => {
    return http.request({
        url: `/store/delGoodsByStoreid`,
        method: 'DELETE',
        data
    })
}